package com.ease.context.designpattern;

/**
 * http://crazybob.org/2007/01/lazy-loading-singletons.html
 * 
 * @author nathanleewei
 */
public class HelperClassSingleton {

	private HelperClassSingleton() {
		/* lazy-loading init */
	}

	public static HelperClassSingleton getInstance() {
		return SingletonSampleHelper.instance;
	}

	private static class SingletonSampleHelper {
		static HelperClassSingleton instance = new HelperClassSingleton();
	}

}
